﻿using FluentAssertions;
using GitUI.UserManual;

namespace GitUITests.UserManual;

[TestFixture]
public class SingleHtmlUserManualFixture
{
    [TestCase((string)null)]
    [TestCase("merge-conflicts")]
    public void GetUrl(string anchor)
    {
        SingleHtmlUserManual sut = new(anchor);

        string expected = SingleHtmlUserManual.Location + "/index.html".Combine("#", anchor);

        sut.GetUrl().Should().Be(expected);
    }
}
